package service;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

import po.CouponPO;
import po.DiscountCouponPO;
import po.EquivalentCouponPO;
import po.ResultMessage;

public interface PromotionDataService extends Remote{
	
	public float getRatio() throws RemoteException;
	
	public ResultMessage setRatio(float newRatio) throws RemoteException;
	
	public float getQuota() throws RemoteException;
	
	public ResultMessage setQuota(float newLimit) throws RemoteException;
	
	public List<EquivalentCouponPO> getEquivalentCoupons() throws RemoteException;
	
	public ResultMessage addDiscountCoupon(DiscountCouponPO po) throws RemoteException;

	public List<DiscountCouponPO> getDiscountCoupons() throws RemoteException;

	public ResultMessage addEquivolentCoupon(EquivalentCouponPO po) throws RemoteException;
	
	public ResultMessage remove(CouponPO coupon) throws RemoteException;
	

}